#ifndef _GAME_H_
#define _GAME_H_

#include "playable.h"
#include "collidable.h"
#include "renderer.h"
#include "player.h"

#include <map>
#include <list>

using namespace std;

class Game {
  public:
	  list<GameObject*> game_objects;
  
	  map<int, Playable*> playables;
  	map<int, Collidable*> collidables;

  	map<int, Player*> players;
  	Renderer* renderer;

	  struct Client_data;

  	char* parse_proto(char* p, int len, char*);

	friend class Client;
	friend class Server;

  
	Game();
};

#endif

